Check boxes are used to present a user with a yes/no choice. Each check box has its own name as specified by the NAME property. You should make this name meaningful so you can decipher the user's response. (See discussion and background for more details).
ATTRIBUTE |
REQUIRED? |
DESCRIPTION |
NAME=" " |
Required |
The name of the check box. |
VALUE=" " |
Optional |
The default value is ‘on’ if the box is checked. You can change this value by entering your own. |
CHECKED |
Optional |
Makes the check box checked by default. |
1. <INPUT TYPE="checkbox" NAME="Own_Computer?" CHECKED> Do you own a computer?
Do you own a computer?
2. <INPUT TYPE="checkbox" NAME="WIN_95"> Do you use Windows 95?
Do you use Windows 95?
NOTE |
For this example to work it must be inside form tags (<FORM .. ..> .. .. </FORM>). The entire form code, including all the examples, is ready for you to use. |